package com.lw.question12;

import java.util.Scanner;

/**
 * @author LW
 * @2020/9/17 16:53
 */
public class task1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int sum = 0;
        int count = 0;
        for (int i = 1; i <= n; i++) {
            if (i%7==0){
                count++;
                sum+=i;
            }
        }
        System.out.println("1~n之间有"+count+"个能被7整除的数,"+"这些能被 7 整除的数的和"+sum);

    }
}
